ui: add invalid & single select support in autocomplete#26803
ui: add invalid & single select support in autocomplete#26803harsh-vador merged 5 commits intomainfrom
Conversation
🟡 Playwright Results — all passed (14 flaky)✅ 3402 passed · ❌ 0 failed · 🟡 14 flaky · ⏭️ 216 skipped
🟡 14 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
...a-ui-core-components/src/main/resources/ui/src/components/base/autocomplete/autocomplete.tsx
Show resolved
Hide resolved
...a-ui-core-components/src/main/resources/ui/src/components/base/autocomplete/autocomplete.tsx
Show resolved
Hide resolved
|
@gitar-bot i have replied to your comments, please update accordingly |
| )}> | ||
| <AriaInput | ||
| className="tw:w-full tw:flex-[1_0_0] tw:appearance-none tw:bg-transparent tw:text-md tw:text-ellipsis tw:text-primary tw:caret-alpha-black/90 tw:outline-none tw:placeholder:text-placeholder tw:focus:outline-hidden tw:disabled:cursor-not-allowed tw:disabled:text-disabled tw:disabled:placeholder:text-disabled" | ||
| className="tw:w-full tw:flex-[1_0_0] tw:appearance-none tw:bg-transparent tw:text-sm tw:text-ellipsis tw:text-primary tw:caret-alpha-black/90 tw:outline-none tw:placeholder:text-placeholder tw:focus:outline-hidden tw:disabled:cursor-not-allowed tw:disabled:text-disabled tw:disabled:placeholder:text-disabled" |
There was a problem hiding this comment.
Understood, thanks for the clarification. The tw:text-sm change is intentional.
Thanks for the clarifications! Both findings have been acknowledged:
No further action needed from my side. |
|
@gitar-bot share the final status of code review |
Here's the final code review status: 2 findings were identified, both marked as intentional:
No outstanding issues remain. The PR is clear from a review standpoint. |
Code Review 👍 Approved with suggestions 1 resolved / 2 findingsAdds invalid state and single-select support to the autocomplete component with comprehensive error handling. Consider reverting the input text size reduction from text-md to text-sm, which affects all autocomplete consumers beyond the new functionality. 💡 Bug: Input text size changed from text-md to text-sm for all instancesLine 257 changes the input class from ✅ 1 resolved✅ Bug: menuTrigger change from "focus" to "input" is a behavioral regression
🤖 Prompt for agentsOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
(cherry picked from commit d5ceaea)
Describe your changes:
I worked on adding support for single and multiple autocomplete support along with handling of error state which highlights the border 'red' when received isInvalid
Screen.Recording.2026-03-27.at.12.25.08.AM.mov
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>